package osami.communication.translate;

import java.util.Vector;

import osami.communication.OsamiIdentifier;

public class HandshakeMessage extends Message
{
	protected Vector<String> iTranslators = new Vector<String>();
	protected OsamiIdentifier iSender;
	

	/**
	 * Add translator names into a vector
	 * 
	 * @param aTranslators
	 */
	public void setTranslators( Vector<Translator> aTranslators )
	{
		for ( Translator translator : aTranslators )
			iTranslators.add( translator.getName() );
	}

	
	/**
	 * Add translator names into a vector
	 * 
	 * @param aTranslators
	 */
	public void setTranslatorNames( Vector<String> aTranslators )
	{
		iTranslators = aTranslators;
	}
	
	
	public Vector<String> getTranslators()
	{
		return iTranslators;
	}
	

	public int getType()
	{
		return Message.HANDSHAKE;
	}


	@Override
	public OsamiIdentifier getDestination()
	{
		// TODO Auto-generated method stub
		return null;
	}


	@Override
	public OsamiIdentifier getSender()
	{
		return iSender;
	}


	public void setSender( OsamiIdentifier aSender )
	{
		iSender = aSender;
	}


	@Override
	public boolean isRequest()
	{
		return false;
	}
}
